home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Belgian Amiga Club - ADF Collection
/
BS1 part 19.zip
/
BS1 part 19
/
pageflipper plus FX d1.adf
/
Text
/
slav
< prev
next >
Wrap
Text File
|
1987-05-15
|
2KB
|
62 lines
SLAV (
SLAN ( < DiskName:Path/FileName > )
SLAP ( < starting bit plane number for sequence > )
)
SLAV stands for SLAVe sequence.
The Slave (SLAV) sequence statement is contained within the external
(XTRN) statement in the initialization (INIT) section.
PFX has the capability of running animations concurrently, starting
at any point within the "Master" animation. The Slave statement
defines the Slave animation, with regard to its name and the starting
bit plane for the Slave sequence.
As an example, suppose you have a four bit plane (16 color) low
resolution animation. The Amiga can use five bit planes in low
resolution. Therefore, you can create or choose any one bit plane
animation (for example, an effect from the Effects drawer, which are
all one bit plane animations), and run it on the fifth bit plane.
Suppose your Master sequence is called MyAnimation, and the Slave
sequence is called SpiralEffect.
These are the steps to follow to construct the final animation:
* Inform PFX that the Slave is "dumb", ie sacrifices intelligent
optimization to achieve synchronization with a parallel animation,
by including the "DUMB (1)" statement in the Global Constants (GLOC)
section in the SpiralEffect script (actually, if you are using a
preset effect supplied in the Effects drawer on the PFX distribution
disk, this is not necessary, since preset effects are all
precompiled and available for immediate use).
Refer to the description of the DUMB statement.
* Add one auxiliary bit plane (AUXP) in the script for MyAnimation
in the initialization (INIT) section under Global Variables (GLOV).
This will cause PFX to allocate space for the Slave sequence. See
the AUXP statement.
* Include a Slave (SLAV) statement in the initialization (INIT)
section of MyAnimation under external (XTRN) sequences as follows:
SLAV (
SLAN ( DiskName:SpiralEffect )
SLAP ( 4 )
)
As a result, PFX will pre-load the Slave sequence so it will run
synchronously with the master sequence at any point in the execution
of the Master.
* Put XSLA ( DiskName:SpiralEffect ) at any point within the Master
sequence, wherever you wish SpiralEffect to start running
concurrently with MyAnimation.
See also the description of the XSLA statement.
Refer to the Tutorials in the Manual for more information.